import psutil,os

def kill():
    for process in psutil.process_iter():
        if 'pythonw' in process.name().lower():
            print(f'Find target:',process)
            confirm=input('Kill?(Y/N)')
            if 'y' not in confirm.lower():
                print('Show mercy...')
                break
            process.kill()
            if process.is_running():
                print('Killing is failed!')
            else:
                print('Killing is done!')
            break
    else:
        print('No target: pythonw')



if __name__ == '__main__':
    kill()